﻿using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using System.Resources;

namespace Congducsan
{
    public partial class FrmThancongtron : Form
    {
        public FrmThancongtron()
        {
            InitializeComponent();
        }
        private void FrmThancongtron_FormClosing(Object sender, FormClosingEventArgs e)
        {
            DradApplication.DradApp.FormMain.Show();
        }
        private void tabControl2_Click(object sender, EventArgs e)
        {
            if (tabControl2.SelectedTab == tabControl2.TabPages[0])
            {
            }
            else
            {
            }
        }

        private void Cancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void Option1_CheckedChanged(object sender, EventArgs e)
        {
            pictureBox1.Image = Congducsan.Properties.Resources.TronBt1;
        }

        private void Option2_CheckedChanged(object sender, EventArgs e)
        {
            pictureBox1.Image = Congducsan.Properties.Resources.TronBt2;
        }

        private void CmdOk_Click(object sender, EventArgs e)
        {
            this.Hide();
            PrCongtron frmTron = new PrCongtron();
            frmTron.Show();
        }

        private void FrmThancongtron_Load(object sender, EventArgs e)
        {
            Option2.Checked = true;
        }

        private void FrmThancongtron_Resize(object sender, EventArgs e)
        {
            this.Size = new Size(587, 511);
        }
    }
}
